from typing import List, AnyStr

from .book import Book

__all__ = ['Book', 'BookManager']


class BookManager:
    books: List[Book]
    dirname: AnyStr
    filename: AnyStr
    def __init__(self) -> None: ...
    def _init_books(self) -> None: ...
    def write2json(self) -> None: ...
    @staticmethod
    def print_info() -> None: ...
    def show_all_book(self) -> None: ...
    def check_book(self, name: str) -> Book | None: ...
    def add_book(self) -> None: ...
    def lend_book(self) -> None: ...
    def return_book(self) -> None: ...
    def run(self) -> None: ...
